Optimal. Leaf size=121 \[ -\frac {\sqrt {d x-c} \sqrt {c+d x} \left (a d^2+4 b c^2\right )}{8 c^2 x^2}+\frac {d^2 \left (a d^2+4 b c^2\right ) \tan ^{-1}\left (\frac {\sqrt {d x-c} \sqrt {c+d x}}{c}\right )}{8 c^3}+\frac {a (d x-c)^{3/2} (c+d x)^{3/2}}{4 c^2 x^4} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.10, antiderivative size = 164, normalized size of antiderivative = 1.36, number of steps used = 5, number of rules used = 4, integrand size = 31, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.129, Rules used = {454, 94, 92, 205} \[ -\frac {\sqrt {d x-c} (c+d x)^{3/2} \left (a d^2+4 b c^2\right )}{8 c^3 x^2}+\frac {d \sqrt {d x-c} \sqrt {c+d x} \left (a d^2+4 b c^2\right )}{8 c^3 x}+\frac {d^2 \left (a d^2+4 b c^2\right ) \tan ^{-1}\left (\frac {\sqrt {d x-c} \sqrt {c+d x}}{c}\right )}{8 c^3}+\frac {a (d x-c)^{3/2} (c+d x)^{3/2}}{4 c^2 x^4} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 92
Rule 94
Rule 205
Rule 454
Rubi steps
\begin {align*} \int \frac {\sqrt {-c+d x} \sqrt {c+d x} \left (a+b x^2\right )}{x^5} \, dx &=\frac {a (-c+d x)^{3/2} (c+d x)^{3/2}}{4 c^2 x^4}+\frac {1}{4} \left (4 b+\frac {a d^2}{c^2}\right ) \int \frac {\sqrt {-c+d x} \sqrt {c+d x}}{x^3} \, dx\\ &=-\frac {\left (4 b c^2+a d^2\right ) \sqrt {-c+d x} (c+d x)^{3/2}}{8 c^3 x^2}+\frac {a (-c+d x)^{3/2} (c+d x)^{3/2}}{4 c^2 x^4}+\frac {1}{8} \left (d \left (4 b+\frac {a d^2}{c^2}\right )\right ) \int \frac {\sqrt {c+d x}}{x^2 \sqrt {-c+d x}} \, dx\\ &=\frac {d \left (4 b c^2+a d^2\right ) \sqrt {-c+d x} \sqrt {c+d x}}{8 c^3 x}-\frac {\left (4 b c^2+a d^2\right ) \sqrt {-c+d x} (c+d x)^{3/2}}{8 c^3 x^2}+\frac {a (-c+d x)^{3/2} (c+d x)^{3/2}}{4 c^2 x^4}+\frac {1}{8} \left (d^2 \left (4 b+\frac {a d^2}{c^2}\right )\right ) \int \frac {1}{x \sqrt {-c+d x} \sqrt {c+d x}} \, dx\\ &=\frac {d \left (4 b c^2+a d^2\right ) \sqrt {-c+d x} \sqrt {c+d x}}{8 c^3 x}-\frac {\left (4 b c^2+a d^2\right ) \sqrt {-c+d x} (c+d x)^{3/2}}{8 c^3 x^2}+\frac {a (-c+d x)^{3/2} (c+d x)^{3/2}}{4 c^2 x^4}+\frac {1}{8} \left (d^3 \left (4 b+\frac {a d^2}{c^2}\right )\right ) \operatorname {Subst}\left (\int \frac {1}{c^2 d+d x^2} \, dx,x,\sqrt {-c+d x} \sqrt {c+d x}\right )\\ &=\frac {d \left (4 b c^2+a d^2\right ) \sqrt {-c+d x} \sqrt {c+d x}}{8 c^3 x}-\frac {\left (4 b c^2+a d^2\right ) \sqrt {-c+d x} (c+d x)^{3/2}}{8 c^3 x^2}+\frac {a (-c+d x)^{3/2} (c+d x)^{3/2}}{4 c^2 x^4}+\frac {d^2 \left (4 b c^2+a d^2\right ) \tan ^{-1}\left (\frac {\sqrt {-c+d x} \sqrt {c+d x}}{c}\right )}{8 c^3}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.09, size = 137, normalized size = 1.13 \[ \frac {\sqrt {d x-c} \sqrt {c+d x} \left (\left (c^2-d^2 x^2\right ) \left (2 a c^2-a d^2 x^2+4 b c^2 x^2\right )-d^2 x^4 \sqrt {1-\frac {d^2 x^2}{c^2}} \left (a d^2+4 b c^2\right ) \tanh ^{-1}\left (\sqrt {1-\frac {d^2 x^2}{c^2}}\right )\right )}{8 c^2 d^2 x^6-8 c^4 x^4} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 1.09, size = 100, normalized size = 0.83 \[ \frac {2 \, {\left (4 \, b c^{2} d^{2} + a d^{4}\right )} x^{4} \arctan \left (-\frac {d x - \sqrt {d x + c} \sqrt {d x - c}}{c}\right ) - {\left (2 \, a c^{3} + {\left (4 \, b c^{3} - a c d^{2}\right )} x^{2}\right )} \sqrt {d x + c} \sqrt {d x - c}}{8 \, c^{3} x^{4}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [B] time = 0.45, size = 324, normalized size = 2.68 \[ -\frac {\frac {{\left (4 \, b c^{2} d^{3} + a d^{5}\right )} \arctan \left (\frac {{\left (\sqrt {d x + c} - \sqrt {d x - c}\right )}^{2}}{2 \, c}\right )}{c^{3}} - \frac {2 \, {\left (4 \, b c^{2} d^{3} {\left (\sqrt {d x + c} - \sqrt {d x - c}\right )}^{14} - a d^{5} {\left (\sqrt {d x + c} - \sqrt {d x - c}\right )}^{14} + 16 \, b c^{4} d^{3} {\left (\sqrt {d x + c} - \sqrt {d x - c}\right )}^{10} + 28 \, a c^{2} d^{5} {\left (\sqrt {d x + c} - \sqrt {d x - c}\right )}^{10} - 64 \, b c^{6} d^{3} {\left (\sqrt {d x + c} - \sqrt {d x - c}\right )}^{6} - 112 \, a c^{4} d^{5} {\left (\sqrt {d x + c} - \sqrt {d x - c}\right )}^{6} - 256 \, b c^{8} d^{3} {\left (\sqrt {d x + c} - \sqrt {d x - c}\right )}^{2} + 64 \, a c^{6} d^{5} {\left (\sqrt {d x + c} - \sqrt {d x - c}\right )}^{2}\right )}}{{\left ({\left (\sqrt {d x + c} - \sqrt {d x - c}\right )}^{4} + 4 \, c^{2}\right )}^{4} c^{2}}}{4 \, d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [B] time = 0.07, size = 226, normalized size = 1.87 \[ -\frac {\sqrt {d x -c}\, \sqrt {d x +c}\, \left (a \,d^{4} x^{4} \ln \left (-\frac {2 \left (c^{2}-\sqrt {-c^{2}}\, \sqrt {d^{2} x^{2}-c^{2}}\right )}{x}\right )+4 b \,c^{2} d^{2} x^{4} \ln \left (-\frac {2 \left (c^{2}-\sqrt {-c^{2}}\, \sqrt {d^{2} x^{2}-c^{2}}\right )}{x}\right )-\sqrt {-c^{2}}\, \sqrt {d^{2} x^{2}-c^{2}}\, a \,d^{2} x^{2}+4 \sqrt {-c^{2}}\, \sqrt {d^{2} x^{2}-c^{2}}\, b \,c^{2} x^{2}+2 \sqrt {-c^{2}}\, \sqrt {d^{2} x^{2}-c^{2}}\, a \,c^{2}\right )}{8 \sqrt {d^{2} x^{2}-c^{2}}\, \sqrt {-c^{2}}\, c^{2} x^{4}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 1.35, size = 162, normalized size = 1.34 \[ -\frac {b d^{2} \arcsin \left (\frac {c}{d {\left | x \right |}}\right )}{2 \, c} - \frac {a d^{4} \arcsin \left (\frac {c}{d {\left | x \right |}}\right )}{8 \, c^{3}} - \frac {\sqrt {d^{2} x^{2} - c^{2}} b d^{2}}{2 \, c^{2}} - \frac {\sqrt {d^{2} x^{2} - c^{2}} a d^{4}}{8 \, c^{4}} + \frac {{\left (d^{2} x^{2} - c^{2}\right )}^{\frac {3}{2}} b}{2 \, c^{2} x^{2}} + \frac {{\left (d^{2} x^{2} - c^{2}\right )}^{\frac {3}{2}} a d^{2}}{8 \, c^{4} x^{2}} + \frac {{\left (d^{2} x^{2} - c^{2}\right )}^{\frac {3}{2}} a}{4 \, c^{2} x^{4}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 15.56, size = 1004, normalized size = 8.30 \[ \frac {\frac {a\,\sqrt {-c}\,d^4}{1024\,c^{7/2}}+\frac {a\,\sqrt {-c}\,d^4\,{\left (\sqrt {c+d\,x}-\sqrt {c}\right )}^2}{128\,c^{7/2}\,{\left (\sqrt {-c}-\sqrt {d\,x-c}\right )}^2}+\frac {11\,a\,\sqrt {-c}\,d^4\,{\left (\sqrt {c+d\,x}-\sqrt {c}\right )}^4}{512\,c^{7/2}\,{\left (\sqrt {-c}-\sqrt {d\,x-c}\right )}^4}+\frac {7\,a\,\sqrt {-c}\,d^4\,{\left (\sqrt {c+d\,x}-\sqrt {c}\right )}^6}{256\,c^{7/2}\,{\left (\sqrt {-c}-\sqrt {d\,x-c}\right )}^6}-\frac {239\,a\,\sqrt {-c}\,d^4\,{\left (\sqrt {c+d\,x}-\sqrt {c}\right )}^8}{1024\,c^{7/2}\,{\left (\sqrt {-c}-\sqrt {d\,x-c}\right )}^8}+\frac {a\,\sqrt {-c}\,d^4\,{\left (\sqrt {c+d\,x}-\sqrt {c}\right )}^{10}}{256\,c^{7/2}\,{\left (\sqrt {-c}-\sqrt {d\,x-c}\right )}^{10}}}{\frac {{\left (\sqrt {c+d\,x}-\sqrt {c}\right )}^4}{{\left (\sqrt {-c}-\sqrt {d\,x-c}\right )}^4}+\frac {4\,{\left (\sqrt {c+d\,x}-\sqrt {c}\right )}^6}{{\left (\sqrt {-c}-\sqrt {d\,x-c}\right )}^6}+\frac {6\,{\left (\sqrt {c+d\,x}-\sqrt {c}\right )}^8}{{\left (\sqrt {-c}-\sqrt {d\,x-c}\right )}^8}+\frac {4\,{\left (\sqrt {c+d\,x}-\sqrt {c}\right )}^{10}}{{\left (\sqrt {-c}-\sqrt {d\,x-c}\right )}^{10}}+\frac {{\left (\sqrt {c+d\,x}-\sqrt {c}\right )}^{12}}{{\left (\sqrt {-c}-\sqrt {d\,x-c}\right )}^{12}}}-\frac {\frac {b\,\sqrt {-c}\,d^2}{32\,c^{3/2}}+\frac {b\,\sqrt {-c}\,d^2\,{\left (\sqrt {c+d\,x}-\sqrt {c}\right )}^2}{16\,c^{3/2}\,{\left (\sqrt {-c}-\sqrt {d\,x-c}\right )}^2}-\frac {15\,b\,\sqrt {-c}\,d^2\,{\left (\sqrt {c+d\,x}-\sqrt {c}\right )}^4}{32\,c^{3/2}\,{\left (\sqrt {-c}-\sqrt {d\,x-c}\right )}^4}}{\frac {{\left (\sqrt {c+d\,x}-\sqrt {c}\right )}^2}{{\left (\sqrt {-c}-\sqrt {d\,x-c}\right )}^2}+\frac {2\,{\left (\sqrt {c+d\,x}-\sqrt {c}\right )}^4}{{\left (\sqrt {-c}-\sqrt {d\,x-c}\right )}^4}+\frac {{\left (\sqrt {c+d\,x}-\sqrt {c}\right )}^6}{{\left (\sqrt {-c}-\sqrt {d\,x-c}\right )}^6}}+\frac {a\,\sqrt {-c}\,d^4\,\ln \left (\frac {\sqrt {c+d\,x}-\sqrt {c}}{\sqrt {-c}-\sqrt {d\,x-c}}\right )}{8\,c^{7/2}}+\frac {b\,\sqrt {-c}\,d^2\,\ln \left (\frac {\sqrt {c+d\,x}-\sqrt {c}}{\sqrt {-c}-\sqrt {d\,x-c}}\right )}{2\,c^{3/2}}-\frac {a\,\sqrt {-c}\,d^4\,\ln \left (\frac {{\left (\sqrt {c+d\,x}-\sqrt {c}\right )}^2}{{\left (\sqrt {-c}-\sqrt {d\,x-c}\right )}^2}+1\right )}{8\,c^{7/2}}-\frac {b\,\sqrt {-c}\,d^2\,\ln \left (\frac {{\left (\sqrt {c+d\,x}-\sqrt {c}\right )}^2}{{\left (\sqrt {-c}-\sqrt {d\,x-c}\right )}^2}+1\right )}{2\,c^{3/2}}+\frac {a\,\sqrt {-c}\,d^4\,{\left (\sqrt {c+d\,x}-\sqrt {c}\right )}^2}{256\,c^{7/2}\,{\left (\sqrt {-c}-\sqrt {d\,x-c}\right )}^2}+\frac {a\,\sqrt {-c}\,d^4\,{\left (\sqrt {c+d\,x}-\sqrt {c}\right )}^4}{1024\,c^{7/2}\,{\left (\sqrt {-c}-\sqrt {d\,x-c}\right )}^4}-\frac {b\,\sqrt {-c}\,d^2\,{\left (\sqrt {c+d\,x}-\sqrt {c}\right )}^2}{32\,c^{3/2}\,{\left (\sqrt {-c}-\sqrt {d\,x-c}\right )}^2} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F(-1)] time = 0.00, size = 0, normalized size = 0.00 \[ \text {Timed out} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________